This article provides a detailed overview of the various timestamps Ditto Server uses to enforce causal consistency and high availability.
Event 1 | Event 2 | Event 3 |
---|---|---|
1. Server A commits Transaction 10 2. Server B gossips to Server A that it has committed Transaction 4 3. Server C gossips to Server A that it has committed Transaction 6 Server A computes the UST as 4 | 1. Server B commits Transaction 5 2. Server A gossips to Server B that it has committed Transaction 7 3. Server C gossips to Server B that it has committed Transaction 6 Server B computes the UST as 5 | 1. Server C commits Transaction 7 2. Server A gossips to Server C it has committed Transaction 9 3. Server B gossips to Server C it has committed Transaction 2 Server C computes the UST as 3 |